TeX/LaTeX/BibTeX Syntax 
for XCode (v.1.3.1)

This package implement a TeX/LaTeX/BibTeX syntax colorization for XCode 3.2.x. It uses the Apple's private xclangspec description file for syntax coloring. So, it is given as it is, whiteout any warranty of being supported in the future.  

————————————————————————————

Change from v 1.3

• Fixed typos which prevented BibTeX.xlangspec to work correctly.

• Made entry BibTeX blocks foldable.

————————————————————————————

Change from v 1.2

• Separated the colorization of the math delimiters $ and $$, from the math content (looks better), and unified the color of math text, in display mode or inline mode.

• Made the delimiter $ foldable. Thus, by folding all (alt-click in the folding ribbon), all the math of the document is folded, and one can just focus on spelling and grammar. 

————————————————————————————

Change from v 1.1

• Syntax control for BibTeX files. 

————————————————————————————

Change from v 1.0

• Syntax control on math and display math $…$ and $$…$$.  Display math can be folded. There is a problem with vertical alignment, but it seem to be a feature (bug?) of XCode itself, or I'll fix in a next release.

• Specific LaTeX color scheme independent from the XCode color scheme, in

Preferences > Colors

It is easier to recognize what colorizes what, and change it. And it makes possible to use the TeX color scheme for TeX typing and keep your favorite one for programming, no need to switch anymore.

• Changed the LaTeX color scheme to another one, inspired by sunset and called LaTeX sunset light.

————————————————————————————

System requirement

	* XCode 3.2.x
	* Tex Live distribution, downloadable at 

http://www.tug.org/mactex/

Once installed you may have to confirm the use of file syntax scheme for your tex files in XCode in the Preferences:

Preferences > File Types > file > text > sourcecode > sourcecode.latex

and/or with from the Menu:

View > Syntax Coloring > LaTeX

This package will install the following files: 

1) TeX Templates 

• LaTeX , Plain TeX, AMS Class, SMF Class documents in:

Home > Library > Application Support > Developer > Shared > Xcode > Project Templates

2) LaTeX syntax coloring specifications 

• LaTeX.pbfilespec, LaTeX.pblangspec, LaTeX.xclangspec, LaTeX.xcsynspec in:

Home > Library > Application Support > Developer > Shared > Xcode > Specifications

3) LaTeX coloring scheme

• LaTeX.xccolortheme in:

Home > Library > Application Support > Xcode > Color Themes

4) BibTeX syntax coloring specifications 

• BibTeX.pbfilespec, BibTeX.pblangspec, BibTeX.xclangspec, BibTeX.xcsynspec in:

Home > Library > Application Support > Developer > Shared > Xcode > Specifications

3) BibTeX coloring scheme

• BibTeX.xccolortheme in:

Home > Library > Application Support > Xcode > Color Themes

———————————————————————————
Patrick Iglesias-Zemmour
Isarel, June 2010

piz@math.huji.ac.il
http://math.huji.ac.il/~piz